home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 66
/
Vol 66.iso
/
games
/
bluep.swf
/
scripts
/
frame_30
/
DoAction.as
Wrap
Text File
|
2013-04-24
|
5KB
|
136 lines
function setup()
{
cacheItAllNow();
whichPageToGo = "";
_root.final_score_txt.text = _global.userScore;
moveMe(_root.end_main_menu,125.8,_root.end_main_menu._y,0.75);
moveMe(_root.replay_game,209.8,_root.replay_game._y,0.75);
moveMe(_root.submit_score,293.8,_root.submit_score._y,0.75);
moveMe(_root.text1,127.1,_root.text1._y,0.75);
moveMe(_root.textBar,132.5,_root.textBar._y,0.75);
moveMe(_root.text2,198,_root.text2._y,0.75);
moveMe(_root.final_score_txt,145.8,_root.final_score_txt._y,0.75);
}
function run()
{
mouseCurserAdjust();
}
function mouseCurserAdjust()
{
_root.crosshair._x = _xmouse;
_root.crosshair._y = _ymouse;
}
function moveIt(mc, xVal, yVal, durInSecs)
{
var _loc3_ = _global.FPSforTweenClass;
var _loc4_ = mc._x;
var _loc5_ = mc._y;
myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.Strong.easeIn,_loc4_,xVal,durInSecs,true);
myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.Strong.easeIn,_loc5_,yVal,durInSecs,true);
myTweening.FPS = _loc3_;
myTweening.FPS = _loc3_;
myTweening.onMotionFinished = function()
{
};
}
function moveItWithCondition(mc, xVal, yVal, durInSecs)
{
var _loc4_ = _global.FPSforTweenClass;
var _loc5_ = mc._x;
var _loc6_ = mc._y;
myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.Strong.easeIn,_loc5_,xVal,durInSecs,true);
myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.Strong.easeIn,_loc6_,yVal,durInSecs,true);
myTweening.FPS = _loc4_;
myTweening.FPS = _loc4_;
myTweening.onMotionFinished = function()
{
_root.gotoAndPlay(whichPageToGo);
};
}
function __rankz_send__(par1, par2, par3, par4)
{
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function(success)
{
if(success)
{
trace(par228.msg);
}
else
{
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/",par228,"POST");
}
function cacheItAllNow()
{
_root.end_main_menu.cacheAsBitmap = true;
_root.replay_game.cacheAsBitmap = true;
_root.submit_score.cacheAsBitmap = true;
_root.textBar.cacheAsBitmap = true;
_root.text1.cacheAsBitmap = true;
_root.text2.cacheAsBitmap = true;
_root.crosshair.cacheAsBitmap = true;
}
stop();
var whichPageToGo;
_root.onMouseDown = function()
{
};
_root.end_main_menu.onPress = function()
{
_root.titleDuringGame.gotoAndPlay("fadeOut");
moveIt(_root.end_main_menu,_root.end_main_menu._x,_root.end_main_menu._y + 400,0.5);
moveIt(_root.submit_score,_root.submit_score._x,_root.submit_score._y + 400,0.5);
moveIt(_root.text1,_root.text1._x - 350,_root.text1._y,0.5);
moveIt(_root.text2,_root.text2._x + 350,_root.text2._y,0.5);
_root.final_score_txt.text = "";
_root.user_name_txt.text = "";
moveIt(_root.textBar,_root.textBar._x,_root.textBar._y + 300,0.5);
moveItWithCondition(_root.replay_game,_root.replay_game._x,_root.replay_game._y + 400,0.5);
whichPageToGo = "main_menu";
};
_root.replay_game.onPress = function()
{
_root.titleDuringGame.gotoAndPlay("fadeOut");
moveIt(_root.end_main_menu,_root.end_main_menu._x,_root.end_main_menu._y + 400,0.5);
moveIt(_root.submit_score,_root.submit_score._x,_root.submit_score._y + 400,0.5);
moveIt(_root.text1,_root.text1._x - 350,_root.text1._y,0.5);
moveIt(_root.text2,_root.text2._x + 350,_root.text2._y,0.5);
_root.final_score_txt.text = "";
_root.user_name_txt.text = "";
moveIt(_root.textBar,_root.textBar._x,_root.textBar._y + 300,0.5);
moveItWithCondition(_root.replay_game,_root.replay_game._x,_root.replay_game._y + 400,0.5);
whichPageToGo = "reset";
};
_root.submit_score.onPress = function()
{
if(_root.user_name_txt.text != "")
{
if(!_global.cheat)
{
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.user_name_txt.text;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _global.dataVector.Get();
_root.__rankz_send__("MjE5NWolZSVhJW4lcw==","UHdlV1pBeGI=",bXlnYW1lX25hbWVfdmFyaWFibGU,bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
getUrl("http://rankz.armorbot.com/blu3p/", "_blank");
}
moveIt(_root.end_main_menu,_root.end_main_menu._x,_root.end_main_menu._y + 400,0.5);
moveIt(_root.submit_score,_root.submit_score._x,_root.submit_score._y + 400,0.5);
moveIt(_root.text1,_root.text1._x - 350,_root.text1._y,0.5);
moveIt(_root.text2,_root.text2._x + 350,_root.text2._y,0.5);
_root.final_score_txt.text = "";
_root.user_name_txt.text = "";
moveIt(_root.textBar,_root.textBar._x,_root.textBar._y + 300,0.5);
moveItWithCondition(_root.replay_game,_root.replay_game._x,_root.replay_game._y + 400,0.5);
whichPageToGo = "main_menu";
}
};